<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        
        .box{
            list-style: none;
            padding:0;
            width: 525px;
            height: 270px;
            /* border:1px solid #f00; */
            margin-top: 100px;
            transform-style: preserve-3d;
            /* transform: rotateX(-5deg) rotateY(75deg); */
        }
        .box .lunbo{
            width: 100%;  
            height: 100%;
            position: relative;  
            transform-style: preserve-3d; /* 旋转时，子元素以三维模式旋转 */
            transition: all 0.5s linear 0s;
        }
        .box .plane{
            position: absolute;
            left: 0;
            right: 0;
            width: 525px;  
            height: 270px;
            background-size:525px auto;
            /* border:1px solid #00f */
        }

        button{
            font-size: 20px; 
        }
        .pic1{
            background:url(img/pic11.jpg) no-repeat 0 0;          
        }
        .pic2{
            background:url(img/pic22.jpg) no-repeat 0 0
        }
        .pic3{
            background:url(img/pic33.jpg) no-repeat 0 0;
        }
        .pic4{
            background:url(img/pic44.jpg) no-repeat 0 0;
        } 
        .trans1{transform: rotateX(0deg) translateZ(135px);}
        .trans2{transform: rotateX(90deg) translateZ(135px);}
        .trans3{transform: rotateX(180deg) translateZ(135px);}
        .trans4{transform: rotateX(270deg) translateZ(135px);}
    </style> 
</head>
<body>
    <ul class="box">
        <li class="lunbo">
            <div class="plane pic1 trans1"></div>
            <div class="plane pic2 trans2"></div>  
            <div class="plane pic3 trans3"></div>
            <div class="plane pic4 trans4"></div>
        </li>
    </ul>
    <button>下一页</button>

    <script>
        var btn = document.querySelector("button")
        var lunbo = document.querySelector(".lunbo")
        var angle = 0
        btn.onclick=function(){
            angle-=90
            lunbo.style.transform =`rotateX(${angle}deg)`
        }
    </script>
    
</body>
</html>